<%@ page import="com.bafa.objects.season.Season" %>
<%@ page import="com.bafa.objects.season.Division" %>
<%@ page import="com.bafa.objects.team.Team" %>
<%@ page import="com.bafa.objects.team.TeamSeasonStats" %>
<%@ page import="com.bafa.objects.team.TeamStats" %>
<%@ page import="com.bafa.objects.player.*" %>
<%@ page import="com.bafa.objects.*" %>
<%@ page import="com.bafa.middle.*" %>
<%@ page import="com.bafa.front.presentationbeans.*" %>
<%@ page import="java.util.*" %>

   <% TeamBean team = (TeamBean)request.getAttribute("Team");   %>
 
      
<script  src="script/niftycube.js" type="text/javascript" ></script>
	<script>
	NiftyLoad=function(){
	     

Nifty("ul#matches h3","top");
Nifty("ul#matches div","bottom same-height");
Nifty("ul#seasons h3","top");
Nifty("ul#seasons div","bottom same-height");
Nifty("ul#halloffame h3","top");
Nifty("ul#halloffame div","bottom same-height");
}
</script>


<style type="text/css">
	
ul#seasons,ul#seasons li{margin:0;padding:0;list-style:none}
	ul#seasons li{float:left;width:485px;margin:0 10px 10px 0}
	ul#seasons h3{font: bold  Verdana,sans-serif;
	    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#seasons p{margin:0;padding:5px 8px 15px}
	ul#seasons div{background:#FFFFFF}
	li#seasons div{border:2px solid #D2D2D2}


ul#matches,ul#matches li{margin:0;padding:0;list-style:none}
	ul#matches li{float:left;width:485px;margin:0 10px 10px 0}
	ul#matches h3{font: bold  Verdana,sans-serif;
	    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#matches p{margin:0;padding:5px 8px 15px}
	ul#matches div{background:#FFFFFF}
	li#matches div{border:2px solid #D2D2D2}
	
	
ul#halloffame,ul#halloffame li{margin:0;padding:0;list-style:none}
	ul#halloffame li{float:left;width:155px;margin:0 10px 10px 0}
	ul#halloffame h3{font: bold  Verdana,sans-serif;
	    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#halloffame p{margin:0;padding:5px 8px 15px}
	ul#halloffame div{background:#FFFFFF}
	li#halloffame div{border:2px solid #D2D2D2}	
	
</style>



<link href="styles_5.css" rel="stylesheet" type="text/css" />
<link href="stats.css" rel="stylesheet" type="text/css" />



    <ul id="seasons"><li id="seasons"><h3 class="avlh">Seasons</h3>
    <div>
      <table width="252" border="0" class="bafatablemedium">
        <tr class="r1">
          <td ><strong>Cleansheets</strong></td>
          <td ><strong><a href="displayteamseasonrecord.bafa?TeamId=<%=team.getID()%>&SeasonId=<%=DisplayServices.getSeason(""+stats.getRecordCleanSheets()[1]).getID()%>"><%=DisplayServices.getSeason(""+stats.getRecordCleanSheets()[1]).getSeason()+" "+DisplayServices.getSeason(""+stats.getRecordCleanSheets()[1]).getYear()%></a></strong></td>
          <td ><%=stats.getRecordCleanSheets()[0]%></td>
        </tr>
		<tr class="r2">
          <td ><strong>Goals Scored</strong></td>
          <td ><strong><a href="displayteamseasonrecord.bafa?TeamId=<%=team.getID()%>&SeasonId=<%=DisplayServices.getSeason(""+stats.getRecordGoalsScored()[1]).getID()%>"><%=DisplayServices.getSeason(""+stats.getRecordGoalsScored()[1]).getSeason()+" "+DisplayServices.getSeason(""+stats.getRecordGoalsScored()[1]).getYear()%></a></strong></td>
          <td ><%=stats.getRecordGoalsScored()[0]%></td>
        </tr>
		<tr class="r1">
          <td ><strong>Goals Conceded</strong></td>
          <td ><strong><a href="displayteamseasonrecord.bafa?TeamId=<%=team.getID()%>&SeasonId=<%=DisplayServices.getSeason(""+stats.getRecordGoalsConceded()[1]).getID()%>"><%=DisplayServices.getSeason(""+stats.getRecordGoalsConceded()[1]).getSeason()+" "+DisplayServices.getSeason(""+stats.getRecordGoalsConceded()[1]).getYear()%></a></strong></td>
          <td ><%=stats.getRecordGoalsConceded()[0]%></td>
        </tr>
		<tr class="r2">
		  <td><strong>Top Scorer </strong></td>
		  <td><strong><a href="displayteamseasonrecord.bafa?TeamId=<%=team.getID()%>&SeasonId=<%=stats.getRecordGoalScorer().getSeasonId()%>"><%=DisplayServices.getSeason(""+stats.getRecordGoalScorer().getSeasonId()).getSeason()+" "+DisplayServices.getSeason(stats.getRecordGoalScorer().getSeasonId()+"").getYear()%></a></strong></td>
		  <td><%=stats.getRecordGoalScorer().getName()%> (<%=stats.getRecordGoalScorer().getGoals()%>) </td>
	    </tr>
	<tr></tr>
      </table>
    </div>
   </li>
</ul>
  
  <ul id="matches"><li id="matches"><h3 class="avlh">Matches</h3>
      <div>
        <table width="252" border="0" class="bafatablemedium">
          <tr>
            <td class="r2"><strong>Biggest Win</strong></td>
            <td class="r2"><a href='viewmatchreport.bafa?matchId=<%=stats.getBiggestWin().getMatchId()%>'><%=stats.getBiggestWin().getOpposition()%> <%=stats.getBiggestWin().getYear()%></a></td>
            <td class="r2"><%=stats.getBiggestWin().getGoalsFor()%>-<%=stats.getBiggestWin().getGoalsAgainst()%></td>
          </tr>
  		<tr>
            <td class="r1"><strong>Biggest Defeat</strong></td>
            <td class="r1"><a href='viewmatchreport.bafa?matchId=<%=stats.getBiggestLoss().getMatchId()%>'><%=stats.getBiggestLoss().getOpposition()%> <%=stats.getBiggestLoss().getYear()%></a></td>
            <td class="r1"><%=stats.getBiggestLoss().getGoalsFor()%>-<%=stats.getBiggestLoss().getGoalsAgainst()%></td>
          </tr>
  		<tr>
            <td class="r2"><strong>Most Goals Scored</strong></td>
            <td class="r2"><a href='viewmatchreport.bafa?matchId=<%=stats.getMostScored().getMatchId()%>'><%=stats.getMostScored().getOpposition()%> <%=stats.getMostScored().getYear()%></a></td>
            <td class="r2"><strong><%=stats.getMostScored().getGoalsFor()%></strong>-<%=stats.getMostScored().getGoalsAgainst()%></td>
          </tr>
  		<%/*%><tr>
            <td class="r2"><strong>Most Goals Conceded</strong></td>
            <td class="r1"><%=stats.getMostGoalsInMatch().getOpposition()%> <%=stats.getMostGoalsInMatch().getYear()%></td>
            <td class="r1"><%=stats.getRecordGoalsConceded()[0]%></td>
          </tr>
  		<tr>
            <td class="r1"><strong>Top Scorer</strong></td>
            <td class="r2"><%=stats.getMostGoalsInMatch().getOpposition()%> <%=stats.getMostGoalsInMatch().getYear()%></td>
            <td class="r2"><%=stats.getRecordGoalsConceded()[0]%></td>
          </tr>
  		<%*/%>
  		<tr></tr>
        </table>
      </div>
    </li>
  </ul>

  
  
  
  <ul id="halloffame"><li id="halloffame"><h3 class="avlh">Hall of Fame</h3>
      <div>
  	
  	 <table width="252" border="0" class="bafatablevsmall">
  	  <%if(team.allTimeScorers()!=null){
  for(int i=0;i<team.allTimeScorers().length && i<10;i++){
  Scorer scorer = team.allTimeScorers()[i];%>
  <%String rowClass="r1"; if(i%2==0)rowClass="r2";%>
        <tr class="<%=rowClass%>">
  		<td ><strong><%=scorer.getName()%></strong></td>
  		<td ><%=scorer.getGoals()%></td>
  	</tr>
  	<%}}%>
  	<tr></tr>
        </table>
  	</div>
  </li>
</ul>
  
  

  